package com.fancy.babel;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1、开启服务注册发现
 *  (配置nacos的注册中心地址)
 * 2、编写网关配置文件
 */

@EnableDiscoveryClient
// 由于引入common中的mybatis配置，这里需要排除数据源相关配置
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class BabelGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(BabelGatewayApplication.class, args);
        System.out.println("babel网关服务启动成功！");
    }

}
